# DayDayUpQ4.py

def day_day_up(df):
    day_up = 1
    for i in range(365):
        if i % 7 in [0, 6]:
            day_up = day_up * (1 - 0.01)
        else:
            day_up = day_up * (1 + df)
    return day_up


day_factor = 0.01
while day_day_up(day_factor) < 37.78:
    day_factor += 0.001
print('工作日的努力参数为：{:.3f}'.format(day_factor))
